-- =========================================
-- Author: Jacob Gable
-- Created: 02.00.2009
-- Notes: Creation of ExerciseEntry table.
-- 
-- 
-- =========================================

IF OBJECT_ID('dbo.ExerciseEntry', 'U') IS NOT NULL
  DROP TABLE dbo.ExerciseEntry
GO

CREATE TABLE dbo.ExerciseEntry
(
	EntryId int identity(1,1) NOT NULL, 
	ExerciseId int foreign key references ExerciseLookup(ExerciseId) NOT NULL, 	
	ts timestamp NULL,
    CONSTRAINT PK_ExerciseEntry PRIMARY KEY (EntryId)
)
GO
